package com.dkm.orproject.dkmoa.service.flow.overtime;

import com.dkm.orproject.dkmoa.domain.OaBatchOvertimeFlow;
import com.dkm.orproject.dkmoa.domain.OaPersonnel;
import com.dkm.orproject.dkmoa.domain.OaRegularFlow;

import java.util.List;

/**
 * @ClassName : OaBatchOvertimeFlowService  //类名
 * @Description : 加班流程服务接口  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-11-03 09:34  //时间
 */
public interface OaBatchOvertimeFlowService {
    List<OaBatchOvertimeFlow> findAll(String batchOvertimeName, String startTime, String endTime, Integer page, Integer limit);

    Long rowCount(String batchOvertimeName, String startTime, String endTime);

    OaBatchOvertimeFlow findById(Long id);

    int deleteById(Long id);

    int add(OaBatchOvertimeFlow batchOvertimeFlow, OaPersonnel personnel);

    int sectionPass(String departmentOpinion, OaPersonnel personnel, Long pkBatchOvertimeId);

    int sectionNoPass(Long pkBatchOvertimeId, OaPersonnel personnel, String formReason);

    int staffingPass(Long pkBatchOvertimeId,String personnelOpinion, OaPersonnel personnel);

    int staffingNoPass(Long pkBatchOvertimeId, OaPersonnel personnel, String formReason);

    List<OaRegularFlow> selectAll(List<Long> list);

    int deleteAll(List<Long> list);

    int exPass(Long pkBatchOvertimeId, String managerOpinion, OaPersonnel personnel);

    int exNoPass(Long pkBatchOvertimeId, String managerOpinion, OaPersonnel personnel);
}
